package com.woniu.backstage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.backstage.dao.TbBannedMapper;
import com.woniu.backstage.entity.TbBanned;
import com.woniu.backstage.service.ITbBannedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author spirit
 * @since 2020-04-17
 */
@Service
public class TbBannedServiceImpl extends ServiceImpl<TbBannedMapper, TbBanned> implements ITbBannedService {

    @Autowired
    private TbBannedMapper bannedMapper;

    @Override
    public Integer addBanned(TbBanned banned) {
        return bannedMapper.insert(banned);
    }

    @Override
    public Integer deleteBanned(Serializable id) {
        return bannedMapper.deleteBanned(id);
    }

    @Override
    public TbBanned getBanned(Serializable id) {
        return bannedMapper.getBanned(id);
    }
}
